﻿using System;
using System.Text;
using System.Collections.Generic;
using System.Linq;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using System.Reflection;
namespace Lottery.Test
{
    [TestClass]
    public class UserServiceTest
    {
        [TestMethod]
        public void UserService_Login_Test_NotExisted()
        {
           var us = new Server.Services.UserService();
           var r =  us.Login("123", "123");
           Assert.AreEqual(-5,r.Result);
          // Console.WriteLine(ClsShowPropery.ShowProperty(r));
        }
        [TestMethod]
        public void UserService_Login_Test_PwdWrong()
        {
            var us = new Server.Services.UserService();
            var r = us.Login("ben", "ben");
            Assert.AreEqual(-6, r.Result);
           // Console.WriteLine(ClsShowPropery.ShowProperty(r));
        }
        [TestMethod]
        public void UserService_Login_Test_ShowProperty()
        {
            var us = new Server.Services.UserService();
            var r = us.Login("ben", "ben");
            Console.WriteLine(ClsShowPropery.ShowProperty(r));
        }

    }
}
